/**
 * Created by kangli on 2018/3/7.
 */
/*新增权限*/
function addCompetenceMana(btn){
    var html ='  <div class="g-confirmDiv">' +
        '<div class="g-confirmlist clearfix"><p class="fl">权限ID：</p> ' +
        '<span class="units">123</span></div> ' +
        '<div class="g-confirmlist clearfix"><p class="fl">权限名：</p> ' +
        '<input type="text" class="form-control fl" style="width: 200px" placeholder="请输入权限名称"></div></div>';
    parent.layer.open({
        type: 1,
        area: ['500px', ''],
        title: '新增权限',
        btn: ['确定','取消'],
        shadeClose: true, //点击遮罩关闭
        content: html,
        success: function(layero, index){

        },
        yes: function(index){

        },
        btn2: function(index){
            parent.layer.close(index);
            /*   return false;*/
        }
    });
}